home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Golf Digest's Best Places to Play
/
Golf Digest's Best Places to Play.iso
/
diamond
/
dbrs_ibm.dir
/
00010_Script_WhatScript
< prev
next >
Wrap
Text File
|
1995-05-15
|
1KB
|
48 lines
on exitFrame
go to marker(0)+4
end
on mouseDown
set ButtonNum=the clickOn
if ButtonNum>0 then
set ButtonName=the name of cast (the castNum of sprite ButtonNum)
if (ButtonNum >1) and (ButtonNum < 9) then
WhatPick(ButtonNum)
end if
if chars(ButtonName,1,6) = "ToMain" then
if PressBtn(ButtonNum) then
AllPuppetsOff
PlayIt("WhatExitSound")
go to marker (0)+5
end if
end if
if chars(ButtonName,1,4) = "Help" then
if PressBtn(ButtonNum) then
showHelp
puppetsprite ButtonNum, true
set the castNum of sprite ButtonNum to the number of cast (ButtonName)
puppetsprite ButtonNum, false
end if
end if
end if
end mouseDown
on WhatPick ButtonNum
puppetsound 0
set ButtonName=the name of cast (the castNum of sprite ButtonNum)
repeat with i=2 to 8
puppetSprite i, true
set the castNum of Sprite i to the number of cast ("What"&i)
puppetSprite i, false
end repeat
puppetSprite ButtonNum, true
puppetSprite 10, true
puppetSprite 11, true
set the castNum of sprite ButtonNum to the number of cast (ButtonName & "Down")
set the castNum of sprite 10 to the number of cast (ButtonName & "Diamond")
set the castNum of sprite 11 to the number of cast (ButtonName & "Text")
puppetsound ButtonName & "Sound"
updateStage
end WhatPick